package com.infore.dataAudit.remote.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.infore.dataAudit.remote.IQualityControlService;
import com.infore.dataAudit.remote.IReceiveDataService;

import feign.hystrix.FallbackFactory;

public class QualityControlServiceFallbackFactory implements FallbackFactory<IQualityControlService>{
    private static final Logger log = LoggerFactory.getLogger(QualityControlServiceFallbackFactory.class);
    @Override
    public IQualityControlService create(Throwable e) {
        log.error("BaseDataService 触发熔断!" + e.getMessage());
        System.out.println("<<<<<<<<<<<"+"BaseDataService fallback:" + e.getMessage()+">>>>>>>>>>>");
        return new DefaultQualityControlServiceFallBack();
    }
}
